﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="addrbook_group_select.aspx.cs" Inherits="Ccit.OA.AddrBook.addrbook_group_select" %>
<%@ Register TagPrefix="ccit" Namespace="Ccit.ServerControls" Assembly="Ccit.ServerControls.ActionForm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>个人通讯录-分组选择</title>
     <script language="javascript" type="text/javascript" src="../script/jquery.js"></script>
        <script language="javascript" type="text/javascript" src="../script/StringClass_Ext.js"></script>
        <script language="javascript" type="text/javascript" src="../script/jsonlib.js"></script>
        <script language="javascript" src="../script/jwindow.js" type="text/javascript"></script>
        <script language="javascript" src="../script/jcontrol.js" type="text/javascript"></script>
        <script language="javascript" src="../script/jbase64.js" type="text/javascript"></script>
        <script type="text/javascript">
            function doSave()
            {
                var msAddBook = {}; //消息对象
                 msAddBook.ID = document.getElementById("_hidsRecId").value;
                 msAddBook.GroupId = document.getElementById("ddlGroup").value;
                 var jsonExpr = JSON.stringify(msAddBook,function(key,value){return value;}); 
                      msAddBook = null; 
                PageMethods.DoSaveMes(jsonExpr,ClientCallBack);   
            }
            function ClientCallBack(vResult)
            {
                if(vResult!="-999")
                {
                    alert("操作成功!");
                    window.close();
                    window.opener.location.reload();  
                }
                else
                {
                    alert("服务器忙,请稍候再操作!");
                    return false;
                }
            }
            function doClose()
            {
                 window.close();
            }
        </script>
</head>
<body>
    <ccit:ActionForm id="form1" runat="server">
     <input type="hidden" id="_hidsRecId" runat="server" />
     <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
     </asp:ScriptManager> 
    <table class="tbToolbar" cellpadding="0" cellspacing="0" width="98%" align="center">
            <tr>
            <td width="2%" align="left">
                <div class="tbSeparator">
                </div>
            </td>
            <td class="titlebar" width="38%">                   
                 个人通讯录-分组选择
            </td>
            <td align="right">               				 
					<nobr></nobr>            
            </td>
            <td align="right">
                <nobr>
            </td>            
          </tr>
         </table>
         <table class="tableborder" cellpadding="0" cellspacing="0" width="98%" align="center">
            <tr>
                <td align="right" width="10%" class="pformleft">分组</td>
                <td width="50%" class="pformright">
                    <asp:DropDownList  ID="ddlGroup" Runat="server" CssClass="inputselect" Width="98%"></asp:DropDownList>
                </td> 
            </tr>
            <tr class="pformstrip" height="20"> 
                <td width="50%"  colspan="2" align="center">
                    <nobr>
                        <input type="button" id="btnSave" value="保存" class="button" onclick="doSave()" />
                        &nbsp;
                        <input type="button" id="btnSaveCont" value="取消" class="button" onclick="doClose()" />
                    </nobr>
                </td> 
            </tr>
         </table>
    </ccit:ActionForm>
</body>
</html>
